﻿<UserControl x:Class="PurchaseSales.Manage.Views.UserControls.AddRoles"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:inf="clr-namespace:PurchaseSales.Manage.Common.Validates">
    <StackPanel>
        <TextBlock Text="角色名称"/>
        <TextBox x:Name="Element_RoleName" Text="{Binding Entity.RoleName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>

        <inf:RequiredValidator Property="{Binding Text,ElementName=Element_RoleName}"
                                  TriggerElement="{Binding ElementName=Element_RoleName}"/>
    </StackPanel>
</UserControl>
